<?php

class IndexAction extends BaseAction {

	public function _initialize(){
		parent::_initialize();
	
	}

    public function index(){
    	$OS = PHP_OS;
    	$this->assign('os',PHP_OS);
    	$this->assign('phpversion',phpversion());
    	$this->assign('mysqlversion',mysql_get_server_info());
    	$info  = php_sapi_name();
    	if($info =='apache2handler'){
    		$yxos = apache_get_version();
    	}else{
    		$yxos = 'Nginx/CGI环境';
    	}
    	$size = floor(disk_free_space(dirname(__FILE__)) / (1024*1024)).'M';
    	$this->assign('size',$size);
    	$this->assign('yxos',$yxos);
    	$this->show();
    }
}
